import request from '@/utils/request'

// 查询个人钱包列表
export function listWalletPerson(query) {
  return request({
    url: '/consumer/walletPerson/list',
    method: 'get',
    params: query
  })
}

// 查询个人钱包详细
export function getWalletPerson(userId) {
  return request({
    url: '/consumer/walletPerson/' + userId,
    method: 'get'
  })
}

// 新增个人钱包
export function addWalletPerson(data) {
  return request({
    url: '/consumer/walletPerson',
    method: 'post',
    data: data
  })
}

// 修改个人钱包
export function updateWalletPerson(data) {
  return request({
    url: '/consumer/walletPerson',
    method: 'put',
    data: data
  })
}

// 删除个人钱包
export function delWalletPerson(userId) {
  return request({
    url: '/consumer/walletPerson/' + userId,
    method: 'delete'
  })
}
